package cn.edu.lzu.service.impl;

import cn.edu.lzu.dao.ExamineItemUnitsMapper;
import cn.edu.lzu.entity.ExamineItemUnits;
import cn.edu.lzu.service.ExamineItemUnitsService;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @PackageName: cn.edu.lzu.service.impl
 * @ClassName: ExamineItemUnitsServiceImpl
 * @Description: TODO 体检项目计量单位service接口实现类
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/1/12 16:31
 * @Version: 1.0
 */
@Service
@Transactional
public class ExamineItemUnitsServiceImpl implements ExamineItemUnitsService {
    @Resource
    private ExamineItemUnitsMapper examineItemUnitsMapper;
    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 根据单位代码unitId获取本单位的所有体检项目计量单位
     * @Date: 2020/1/12 16:33
     * @Param: [unitId]
     * @Return: java.util.List<cn.edu.lzu.entity.ExamineItemUnits>
     **/
    @Override
    public List<ExamineItemUnits> getExamineItemUnitsList(long unitId) {
        List<ExamineItemUnits> examineItemUnitsList =examineItemUnitsMapper.selAllUnitsByUnitId(unitId);
        return examineItemUnitsList;
    }
}
